package com.zp.callback;

import com.zp.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;

/**
 * 启动进行服务注册
 */
public class RegisterCallbackImpl implements ApplicationRunner {

    @Autowired
    private RegisterService registerService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        registerService.register();
    }
}
